﻿package mortal.game.net.command.friend
{
    import Framework.MQ.*;
    import Message.Command.*;
    import Message.Game.*;
    import Message.Public.*;
    import extend.language.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class FlowerSendCommand extends BroadCastCall
    {

        public function FlowerSendCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_2:SFlowerInfoMsg = null;
            var _loc_3:SKissInfoMsg = null;
            var _loc_4:SFlowerNoticeMsg = null;
            switch(param1.messageHead.command)
            {
                case EGateCommand._ECmdGateFriendSendFlower:
                {
                    _loc_2 = param1.messageBase as SFlowerInfoMsg;
                    NetDispatcher.dispatchCmd(ServerCommand.FlowerReceived, _loc_2);
                    break;
                }
                case EGateCommand._ECmdGateFriendKiss:
                {
                    _loc_3 = param1.messageBase as SKissInfoMsg;
                    MsgManager.showRollTipsMsg(Language.getStringByParam(20502, _loc_3.fromPlayer.name));
                    break;
                }
                case EPublicCommand._ECmdPublicBroadCastFlower:
                {
                    _loc_4 = param1.messageBase as SFlowerNoticeMsg;
                    NetDispatcher.dispatchCmd(ServerCommand.FlowerBroadCast, _loc_4);
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
